<!--
 * Copyright TLR Team, Inc. All Rights Reserved.
-->
<div class="tlr-assessment-container">
    <form class="form-horizontal">
        <div class="form-group">
            <div class="col-sm-12" style="border-bottom: 1px solid #BEBEBE; padding-bottom: 10px; font-size: 20px;">
                <label class="col-sm-3 control-label">调查表签名</label>
            </div>
        </div>
        <label >请于下方签名，作为您对这份评估文件的认可，并确认评估内容的真实有效</label>
        <table  class="table" style="padding: 15px;font-size: 16px;">
            <tbody>
                <tr>
                    <td width="150">您的姓名:</td>
                    <td> <input type="text" class="form-control input-sm tlr-table-editbox" ng-model="assessment.signature.name"></td>
                </tr>
                <tr>
                    <td>您的签名:</td>
                    <td>
                        <input type="button" value="重签" ng-click="resetSignature()" ng-if="!assessment.signature.signature || assessment.signature.signature === ''">
                        <input type="button" value="保存" ng-click="saveSignature()" ng-if="!assessment.signature.signature || assessment.signature.signature === ''">
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <div id="signature1" class="signaturePanel"></div>
                        <script>$('#signature1').jSignature();</script>
                    </td>
                </tr>
                <tr>
                    <td width="150">日期:</td>
                    <td>
                        <p class="input-group">
                            <input id="signature_signdate_id" ng-model="assessment.signature.signdate" placeholder="yyyy-mm-dd" style="height: 34px;" class="form-control" type="text">
                            <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
                            <script type="text/javascript">
                                $("#signature_signdate_id").datetimepicker({
                                    language: "zh-CN",
                                    format: "yyyy-mm-dd",
                                    minView: 2,
                                    autoclose: true,
                                    todayBtn: true,
                                    pickerPosition: "bottom-left"
                                });
                            </script>
                        </p>
                    </td>
                </tr>
                <tr>
            </tbody>
        </table>
        <label >若本次评估由他人代为完成，请代填人完成下列信息</label>
        <table  class="table" style="padding: 15px;font-size: 16px;">
            <tbody>
                <tr>
                    <td width="150">姓名:</td>
                    <td> <input type="text" class="form-control input-sm tlr-table-editbox" ng-model="assessment.signature.behalfname"></td>
                </tr>
                <tr>
                    <td width="150">关系:</td>
                    <td> <input type="text" class="form-control input-sm tlr-table-editbox" ng-model="assessment.signature.behalfSignature"></td>
                </tr>
                <tr>
                    <td width="150">日期:</td>
                    <td> 
                        <p class="input-group">
                            <input id="signature_behalfsigndate_id" ng-model="assessment.signature.behalfsigndate" placeholder="yyyy-mm-dd" style="height: 34px;" class="form-control" type="text">
                            <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
                            <script type="text/javascript">
                                $("#signature_behalfsigndate_id").datetimepicker({
                                    language: "zh-CN",
                                    format: "yyyy-mm-dd",
                                    minView: 2,
                                    autoclose: true,
                                    todayBtn: true,
                                    pickerPosition: "top-left"
                                });
                            </script>
                        </p>
                    </td>
                </tr>
            <td width="150">评估人员姓名:</td>
            <td> <input type="text" class="form-control input-sm tlr-table-editbox" ng-model="assessment.signature.assessorname"></td>
            </tr>
            <tr>
                <td>评估人员签名:</td>
                <td>
                    <input type="button" value="重签" ng-click="resetAssessorSignature()" ng-if="!assessment.signature.assessorSignature || assessment.signature.assessorSignature === ''">
                    <input type="button" value="保存" ng-click="saveAssessorSignature()" ng-if="!assessment.signature.assessorSignature || assessment.signature.assessorSignature === ''">
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <div id="signature2" class="signaturePanel"></div>
                    <script>$('#signature2').jSignature();</script>
                </td>
            </tr>
            <tr>
                <td width="150">日期:</td>
                <td> 
                    <p class="input-group">
                        <input id="signature_assessorsigndate_id" ng-model="assessment.signature.assessorsigndate" placeholder="yyyy-mm-dd" style="height: 34px;" class="form-control" type="text">
                        <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
                        <script type="text/javascript">
                            $("#signature_assessorsigndate_id").datetimepicker({
                                language: "zh-CN",
                                format: "yyyy-mm-dd",
                                minView: 2,
                                autoclose: true,
                                todayBtn: true,
                                pickerPosition: "top-left"
                            });
                        </script>
                    </p>
                </td>
            </tr>
            </tbody>
        </table>
       
        <div class="col-sm-9">
            <input class="btn btn-default" style="float: right;" type="button" value="下一页" ng-click="nextPage(16)">
            <!--input class="btn btn-default" style="float: right;" type="button" value="提交" ng-click="onSubmit('createassesment', false)"> -->
            <input class="btn btn-default" style="float: right; margin-right: 30px;" type="button" value="上一页" ng-click="prevPage(14)">
        </div>
    </form>
</div>
